//
//  HZOrderCellModel.h
//  app
//
//  Created by 刘华舟 on 15/5/6.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "SNGiftModel.h"
#import "SNPromotionModel.h"

typedef NS_ENUM(NSInteger, HZOrderCellType){
    HZOrderCellTypeAddress = 0,
    HZOrderCellTypeThin = 1,
    HZOrderCellTypeGoods = 2
};


@interface HZOrderCellModel : NSObject

@property (assign, nonatomic) CGFloat cellHeight;

@property (assign, nonatomic) HZOrderCellType orderCellType;
@property (assign, nonatomic, getter=isFirstOrder) BOOL firstOrder;


//商品邮寄信息
@property (strong, nonatomic) NSString *receiver;
@property (strong, nonatomic) NSString *phone;
@property (strong, nonatomic) NSString *address;



//details 商品信息
@property (strong, nonatomic, readonly) NSString *actID;
@property (strong, nonatomic, readonly) NSString *productID;
@property (strong, nonatomic, readonly) NSString *productTitle;
@property (strong, nonatomic, readonly) NSString *productName;
@property (strong, nonatomic, readonly) NSString *titlePic;
@property (strong, nonatomic, readonly) NSString *shopID;
@property (strong, nonatomic, readonly) NSString* shopName;
@property (strong, nonatomic, readonly) NSString *salePrice;
@property (strong, nonatomic, readonly) NSString *tagPrice;
@property (strong, nonatomic, readonly) NSString *productNum;

@property (strong, nonatomic, readonly) SNGiftModel *giftModel;
@property (strong, nonatomic, readonly) NSArray *promotionArray;

@property (strong, nonatomic, readonly) NSArray *patterns;


//细标题选项
@property (strong, nonatomic) NSString *leftTitle;
@property (strong, nonatomic) NSString *rightTitle;






+(CGFloat)cellHeightOfType:(HZOrderCellType)type;
+(NSInteger)cellUFHeightOfType:(HZOrderCellType)type;

+(NSString*)reuseIdentifierOfType:(HZOrderCellType)type;

+ (instancetype)modelWithDictionary:(NSDictionary *)dict type:(HZOrderCellType)type;
- (instancetype)initModelWithDictionary:(NSDictionary *)dict type:(HZOrderCellType)type;


@end
